//
//  ImageWebViewController.m
//  ZAKER
//
//  Created by dllo on 15/9/9.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "ImageWebViewController.h"

@interface ImageWebViewController ()

@end


@implementation ImageWebViewController

-(void)dealloc
{
    
    [_url release];
    
    [super dealloc];
    
}

- (void)viewDidLoad
{
    
    [super viewDidLoad];
   
    [self createWebView];
    NSLog(@"%s", __func__);
}


-(void)createWebView
{
    UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, -50 * myHeight, self.view.frame.size.width, self.view.frame.size.height)];
    [self.view addSubview:web];
    
    /* 检测文本显示 */
    web.scalesPageToFit = YES;
    NSURLRequest *request = [NSURLRequest requestWithURL:self.url];
    [web loadRequest:request];
    [web release];
    
}

// 从这里拿出model里的id
-(void)sendUrl:(NSURL *)url
{
    
    self.url = url;
    
}

- (void)didReceiveMemoryWarning
{
    
    [super didReceiveMemoryWarning];

}



@end
